﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Reports.Rest
{
    public partial class PrintForm : Form,IntegrationInterface.IDIReport
    {
        private Reports.Rest.DataSet _data;
        public PrintForm(Reports.Rest.DataSet data)
        {
            _data = data;
            InitializeComponent();
        }
        private DateTime  _dateF;

        public DateTime  DateF
        {
            get { return _dateF; }
            set { _dateF = value; }
        }

       

        #region IDIReport Members

        public void InitReport(string reportPath)
        {
            
            CrystalReport1.FileName = reportPath;
            CrystalReport1.Load();
            
            CrystalReport1.SetDataSource(_data);
            CrystalReport1.SetParameterValue("DateF", DateF);

        }

        #endregion
    }
}